package builder_mode

import "fmt"

type Car struct {
	Name  string
	Color string
}

func (c *Car) Show() {
	fmt.Printf("name=%s,color=%s", c.Name, c.Color)
}

func (c *Car) SetName(name string) {
	c.Name = name
}

func (c Car) SetColor(color string) {
	c.Color = color
}

func (c Car) GetName() string {
	return c.Name
}

func (c Car) GetColor() string {
	return c.Color
}
